package com.fpx.metadata.bean.po;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;

import java.util.Date;
import javax.persistence.*;

@Table(name = "r_job")
@Data
@ApiModel(value = "kettle作业信息")
public class RJob {

    @Id
    @KeySql(useGeneratedKeys = true)
    @Column(name = "id_job")
    @ApiModelProperty(value = "id")
    private Long idJob;

    @Column(name = "directory")
    @ApiModelProperty(value = "目录")
    private String directory;

    @Column(name = "name")
    @ApiModelProperty(value = "作业名")
    private String name;

    @Column(name = "job_version")
    @ApiModelProperty(value = "作业版本")
    private String jobVersion;

    @Column(name = "job_status")
    @ApiModelProperty(value = "作业状态 1：草案 2：产品")
    private Integer jobStatus;

    @Column(name = "created_user")
    @ApiModelProperty(value = "创建人")
    private String createdUser;

    @Column(name = "created_date")
    @ApiModelProperty(value = "创建时间")
    private Date createdDate;

    @Column(name = "modified_user")
    @ApiModelProperty(value = "修改人")
    private String modifiedUser;

    @Column(name = "modified_date")
    @ApiModelProperty(value = "修改时间")
    private Date modifiedDate;

    @Column(name = "description")
    @ApiModelProperty(value = "描述")
    private String description;

    @Column(name = "extended_description")
    @ApiModelProperty(value = "扩展描述")
    private String extendedDescription;
}